#ifndef __EC_IT8733_H__
#define __EC_IT8733_H__

#define BIT1 0x02

#define LPC_EC_INDEX_PORT 0x2E
#define LPC_EC_DATA_PORT 0x2F

#define SIO_CONFIG_CTRL       0x02
#define SIO_CONFIG_PORT       0x2E

#define VOID       void
#define UINT8       unsigned char
#define UINT16       unsigned short

#define EC_DEV_IN 1001
#define EC_DEV_OUT 1002

#define EC_DEV_BYTE_IN 1101
#define EC_DEV_BYTE_OUT 1102

//#define EC_DEV_TEST   1201

typedef struct
{
	int nlen;
	unsigned short int port;
	unsigned char value;

}  __attribute__ ((packed)) typEcDev;

unsigned char dev_inb(int fd, unsigned short int port);
void dev_outb(int fd, unsigned char value, unsigned short int port);





#endif